<template>
  <div class="o_info_outer">
    <div class="o_info">
      <div class="order_info">
        <img src="../assets/img/right.png" alt="">
        <span>订单信息</span>
      </div>
      <div class="o_sure">
        <span>待酒店确认</span><br>
        订单已提交，正在发往酒店确认，请稍候
        <img src="../assets/img/w_right.png" alt="">
      </div>
      <div>
        <div class="o_out">
          <span class="o_type">到店付款</span>
          <span class="o_price">￥609</span>
          <span class="o_detail"  @click="change_class">费用明细</span>
        </div>
        <div class="o_tips">注意：房间保留至2月5日18:00，请及时入住</div>
      </div>
      <div>
        <div class="o_out">
          <span class="o_type">桔子水晶酒店(北京总部基地店)</span>
          <span class="o_detail">酒店详情</span><br>
          <span class="o_address">南四环西路188号总部基地17区16号楼</span>
        </div>
        <div class="o_tips o_tips2">
          <span class="o_hotel" @click="change_class2">联系酒店</span>
          <span><a href="map.html">地图导航</a></span>
        </div>
      </div>
      <div>
        <div class="o_out">
          <span class="o_type">商务双床房</span>
          <span class="o_detail" @click="change_class3">房间详情</span><br>
          <span class="o_address">含早餐 双床</span>
        </div>
        <div class="o_tips3">
          <span class="o_date">2月5日</span>入住
          <span class="o_line"></span>
          <span class="o_time">共1间<br>2晚</span>
          <span class="o_date">2月7日</span>离店
        </div>
      </div>
      <div class="person_info">
        <div>
          <span class="span1">入住人</span>
          <span class="span2">某某</span>
        </div>
        <div>
          <span class="span1">联系手机</span>
          <span class="span2">1213223232</span>
        </div>
        <div>
          <span class="span1">支付方式</span>
          <span class="span2">支付宝</span>
        </div>
        <div>
          <span class="span1">下单时间</span>
          <span class="span2">2018-01-30 17:52:00</span>
        </div>
        <div>
          <span class="span1">订单编号</span>
          <span class="span2">1121212122</span>
        </div>
        <div class="o_tips4"></div>
      </div>
      <div>
        <div class="o_tips5">
          <span>发票信息</span>
          如需发票，请到酒店前台索取
        </div>
      </div>
      <div class="o_fixed">
        <span>取消订单</span>
        <span class="o_go">继续预定</span>
      </div>
    </div>
    <div class="o_info_back" :class="{o_none:none}">
      <div class="p_detail" >费用明细</div>
      <div class="free1">
        房费
        <span>￥1218</span>
      </div>
      <div class="o_list">
        <span class="l_time">2018-02-05</span>
        <span class="l_breakfast">含早餐</span>
        <span class="l_hostel">￥609×1间</span>
      </div>
      <div class="o_list">
        <span class="l_time">2018-02-05</span>
        <span class="l_breakfast">含早餐</span>
        <span class="l_hostel">￥609×1间</span>
      </div>
      <div class="line_pay">
        在线付款：<span>￥1218</span>
      </div>
      <div class="l_close" @click="change_class">
        <img src="../assets/img/facility_close@3x.png" alt="">
      </div>
    </div>
    <div class="o_info_back" :class="{o_none:none2}">
      <div class="phone_out">
        <div class="phone_num">(010) 5222 9999</div>
        <div class="btn_out">
          <span @click="change_class2">取消</span>
          <a href="tel:(010) 5222 9999">呼叫</a>
        </div>
      </div>
    </div>
    <div class="o_info_back" :class="{o_none:none3}">
      <div class="d_hotel_out">
        <div class="top">
          <div class="bed">商务双床房</div>
          <div>不含早餐 商务双床房</div>
          <div class="bed_detail">
            <span>
              <img src="../assets/img/roomdetails_icon_net@2x.png" alt="">
              免费有线
            </span>
            <span>
              <img src="../assets/img/roomdetails_icon_net@2x.png" alt="">
              免费有线
            </span>
            <span>
              <img src="../assets/img/roomdetails_icon_net@2x.png" alt="">
              免费有线
            </span>
            <span>
              <img src="../assets/img/roomdetails_icon_net@2x.png" alt="">
              免费有线
            </span>
            <span>
              <img src="../assets/img/roomdetails_icon_net@2x.png" alt="">
              免费有线
            </span>
            <span>
              <img src="../assets/img/roomdetails_icon_net@2x.png" alt="">
              免费有线
            </span>
          </div>
        </div>
        <div class="faci">
          <div class="fa_title">
            房间设施
            <span @click="o_close2">
              全部设施
              <img src="../assets/img/roomdetails_right@2x.png" alt="">
            </span>
          </div>
          <div class="bed_detail2">
              <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
          </div>
        </div>
        <div class="active">
          <div class="til">活动与服务</div>
          <div class="f_out">
            <span class="f_l"><span>不可取消</span></span>
            <span class="f_r">预定该政策，需要到店支付609元，订单确认之后不可取消和更改，如未入住费用将不予退还。</span>
          </div>
          <div class="f_out">
            <span class="f_l2"><span>立即确认</span></span>
            <span class="f_r">预定此房型后可立即确认订单。</span>
          </div>
        </div>
        <div class="pay_btn">
          到店付 <span class="pay_price">￥899</span>
          <span class="pay_book">立即预订</span>
        </div>
      </div>
      <div class="d_hotel_close" @click="o_close"></div>
    </div>
    <div class="o_info_back" :class="{o_none:none4}">
      <div class="d_hotel_out">
        <div class="top top2">
          <img @click="change_class4" src="../assets/img/left2.png" alt="">
          房间设施
        </div>
        <div class="faci">
          <div class="fa_title">
            电器多媒体
            <span class="machine">
              <i>*</i>灰色戴表部分房间有
            </span>
          </div>
          <div class="bed_detail2">
              <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
          </div>
          <div class="fa_title">
            卫浴设施
          </div>
          <div class="bed_detail2">
              <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
          </div>
          <div class="fa_title">
            家具设施
          </div>
          <div class="bed_detail2">
              <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
          </div>
          <div class="fa_title">
            服务
          </div>
          <div class="bed_detail2">
              <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
            <span>
                <img src="../assets/img/roomdetails_icon_nation@2x.png" alt="">
                国内长电话
              </span>
          </div>
        </div>
        <div class="pay_btn">
          到店付 <span class="pay_price">￥899</span>
          <span class="pay_book">立即预订</span>
        </div>
      </div>
      <div class="d_hotel_close" @click="o_close"></div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'order',
    data () {
      return {
        none:true,
        none2:true,
        none3:true,
        none4:true
      }
    },
    methods:{
      change_class:function() {
        this.none=!this.none;
        console.log(this.none);
      },
      change_class2:function() {
        this.none2=!this.none2;
        console.log(this.none2);
      },
      change_class3:function() {
        this.none3=!this.none3;
        console.log(this.none3);
      },
      o_close:function() {
        this.none3=true;
      },
      o_close2:function() {
        this.none3=true;
        this.none4=false
      },
      change_class4:function() {
        this.none4=true;
        this.none3=false;
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  a{
    text-decoration: none;
  }
  .d_hotel_out .machine{
    font-size: 12px;
    color:#D2D2D2;
  }
  .d_hotel_out .machine i{
    color:#FF5443;
  }
  .d_hotel_out .top2 img{
    position: absolute;
    left:10px;
    top:10px;
  }
  .d_hotel_out .top2{
    position: relative;
    text-align: center;
  }
  .d_hotel_close{
    height:200px;
    width:100%;
  }
  .pay_book{
    display: block;
    float:right;
    background:#FF5443;
    color:white ;
    padding:0 12px;
  }
  .pay_price{
    color:#FF5346;
  }
  .pay_btn{
    height:40px;
    line-height: 40px;
    font-size:16px;
    color:#333333;
    border-top:1px solid #E4E4E4;
    padding:0 0 0 10px;
  }
  .f_out{
    overflow: hidden;
    margin:10px 0;
  }
  .f_l,.f_l2{
    float:left;
    width:30%;
    text-align: center;
  }
  .f_l span{
    font-size: 12px;
    padding:1px 4px;
    border-radius: 2px;
    border:1px solid #FF5443;
    color:#FF5443;
    display: inline-block;
  }
  .f_l2 span{
    font-size: 12px;
    padding:0px 4px;
    border-radius: 2px;
    border:1px solid #50B400;
    color:#50B400;
    display: inline-block;
  }
  .f_r{
    float:right;
    width:70%;
  }
  .active{
    color:#333333;
    padding:10px;
  }
  .til{
    font-size: 16px;
  }
  .bed_detail2{
    border-bottom:1px solid   #E4E4E4;
    padding:0 0px;
  }
  .bed_detail2 span{
    display: inline-block;
    width: 32%;
    height: 30px;
    line-height: 30px;
    color:#666666;
    font-size: 12px;
    overflow: hidden;
  }
  .bed_detail2 span img{
    vertical-align: middle;
  }
  .fa_title{
    color:#333333;
    font-size: 16px;
    padding:15px 10px 10px;
  }
  .faci .fa_title img{
    width:7px;
    margin-left:4px;
  }
  .fa_title span{
    font-size: 14px;
    color:#00A0FF;
    float: right;
  }
  .faci{
    background:white;
  }
  .bed_detail{
    margin-top:10px;
  }
  .bed_detail>span{
    display: inline-block;
    width:30%;
    height:30px;
    line-height: 30px;
  }
  .bed_detail>span img{
    vertical-align: middle;
  }
  .d_hotel_out .bed{
    font-size: 14px;
    line-height: 24px;
  }
  .d_hotel_out .top{
    background: #B4282D;
    border-radius: 6px 6px 0 0;
    padding:10px;
  }
  .d_hotel_out{
    width:300px;
    margin:6% auto 0;
    background: #fff;
    border-radius: 6px;
  }
  .d_hotel_out img{
    width:20px;
  }
  .o_show{
    display: block;
  }
  .o_none{
    display: none;
  }
  .order_info{
    border-top:1px solid #AFAFAF;
    height:40px;
    line-height:40px;
    text-align: center;
    background:rgba(249,249,249,1);
    position: relative;
    font-weight: 600;
  }
  .order_info img{
    width:20px;
    position: absolute;
    top:14px;
    left:14px;
  }
  .o_sure{
    background: #B4282D;
    color:white;
    font-size:14px;
    position: relative;
    padding:16px;
    line-height: 26px;
  }
  .o_sure span{
    font-size: 16px;
  }
  .o_sure img {
    position: absolute;
    right:10px;
    width:14px;
    top:32px;
  }
  .o_out{
    padding:10px;
  }
  .o_type{
    font-size: 14px;
  }
  .o_price{
    font-size: 18px;
    color:#FF5346;
    margin-left:10px;
  }
  .o_detail{
    font-size: 12px;
    color:#B4282D;
    float:right;
  }
  .o_tips{
    font-size: 12px;
    color:#666666;
    padding:10px;
    border-top:1px solid #EEEEEE;
    border-bottom:10px solid #EFEFF4;
  }
  .o_tips4{
    border-bottom:10px solid #EFEFF4;
  }
  .o_address{
    font-size: 12px;
    color:#666666;
    line-height: 32px;
    display: inline-block;
  }
  .o_tips span a{
    color:  #B4282D;
  }
  .o_tips span{
    display: inline-block;
    width:48%;
    text-align: center;
    line-height:26px;
    font-size:12px;
    color:  #B4282D;
    padding:10px 0;
  }
  .o_tips .o_hotel{
    border-right:1px solid #EEEEEE;
  }
  .o_tips2{
    padding:0;
  }
  .o_tips3{
    border-bottom:10px solid #EFEFF4;
    padding:10px 10px 20px;
    font-size: 12px;
    color:#999999;
    position: relative;
  }
  .o_date{
    color:#333;
    font-size: 16px;
  }
  .o_time{
    position: absolute;
    left:45%;
  }
  .o_line {
    width:40%;
    border-top:1px solid #E5EDF8;
    display: inline-block;
    margin:0 4px;
  }
  .person_info{
    font-size: 12px;
    color:#999999;
    line-height: 20px;
  }
  .person_info>div{
    padding:10px;
  }
  .person_info .span1{
    display: inline-block;
    width:30%;
    padding-left:10px;
  }
  .person_info .span2{
    color:#333333;
  }
  .o_tips5{
    border-bottom:20px solid #EFEFF4;
    padding:10px;
    font-size:12px;
    color:  #333333;
    margin-bottom:40px;
  }
  .o_tips5 span{
    color:#999999;
    display: inline-block;
    margin-right:16px;
  }
  .o_fixed{
    position: fixed;
    bottom:0px;
    left:0px;
    height:40px;
    line-height: 40px;
    background: white;
    width:100%;
  }
  .o_fixed span{
    display: inline-block;
    width:48%;
    text-align: center;
    color:#666666;
  }
  .o_fixed .o_go{
    color:white;
    background:#FF5443;
    float: right;
  }
  .o_info_back{
    position: fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index: 20;
    background: rgba(102,102,102,0.9);
    color:white;
    font-size:12px;
  }
  .p_detail{
    text-align: center;
    font-size: 16px;
    height:50px;
    line-height: 50px;
  }
  .free1{
    font-size:14px;
    width:90%;
    margin:0 auto;
    line-height: 30px;
    border-bottom:1px solid white;
    margin-bottom:10px;
  }
  .free1 span{
    float:right;
    color:#FF5443;
  }
  .o_list{
    text-align: center;
    width:90%;
    margin:0 auto;
    line-height: 30px;
  }
  .l_time{
    float:left;
  }
  .l_hostel{
    float:right;
  }
  .line_pay{
    width:90%;
    margin:0 auto;
    text-align: right;
    line-height: 60px;
    font-size:14px;
  }
  .line_pay span{
    color:#FF5443;
  }
  .l_close{
    text-align: center;
    line-height: 40px;
    position: absolute;
    bottom:10px;
    background: white;
    height:40px;
    width:40px;
    border-radius: 20px;
    margin-left:43%;
  }
  .l_close img{
    width:20px;
    margin-top:10px;
  }
  .phone_out{
    color:#030303;
    text-align:center;
    width:220px;
    border-radius:8px;
    background:#FCFCFC;
    position: relative;
    margin:50% auto;
  }
  .phone_num{
    line-height: 50px;
    font-size: 14px;
    border-bottom:1px solid #E4E4E4;
  }
  .btn_out span{
    border-right:1px solid #E4E4E4;
    box-sizing: border-box;
  }
  .btn_out span,.btn_out a{
    display: inline-block;
    line-height: 40px;
    height:40px;
    text-align: center;
    width:48%;
    color:#007AFF;
    font-size:16px;
  }
</style>

